discrete and continuous functions